/**
 * 业务
 */
import counter from './counter'

const buzi01 = {
    name: '活期存款开户(个人客户)',
    counter,
    scripts: [
        { name: '凭证箱输入', scope: '3', onChange: { value: '打印纸,3', pages: 1 } },
        { name: '客户操作', scope: '0', onChange: { value: '询问客户', pages: 1 } },
        { name: '身份证', scope: '1-2', type: 'desktopItem', display: true, content: { id: 10006, action: 'select' }, onChange: { value: '2,3', show: '', pages: 1 } },
        { name: '凭证', scope: '1+', type: 'desktopItem', display: true, content: { id: 10007, action: 'stamp' }, onChange: { value: true, show: '', pages: 1 } },
        { name: '视频', type: 'video', scope: '0+', display: false, content: 'http://test1.caringnurse.cn/bttrs/api/file/video/2c91bf9a659e3a8c01659ff0a7fb0025', onChange: { pages: 1 } },
        { name: '身份证', scope: '1', onDrag: { value: '客户', pages: 1 } },
        { name: '表格', scope: '1', onClick: { show: '凭证' } },
        { name: '表格', scope: '2+', display: true },
        { name: '窗口', scope: '2', type: 'window', title: '客户收到身份证', display: true, content: '<h3>请收好您的身份证</h3><p style="text-align: right">收到!</p><h3>谢谢!</h3>', onClick: { pages: 1 } },
        { name: '应用系统', scope: '4', display: true, title: '系统-模块-001', content: '系统-模块-001' },
        { name: '应用系统', scope: '5', type: 'app', display: false, title: '系统初始化', content: '系统-初始化' },
    ],
    steps: [
        {
            title: "询问客户",
            description: "点击客户头像, 在列表中选择'询问客户",
            pages: 0
        },
        {
            title: "归还身份证",
            description: "拖拽桌面凭证身份证到用户头像",
            pages: 1
        },
        {
            title: "从凭单格去3张打印纸",
            description: "点击凭单格, 选择打印纸, 取出3张",
            pages: 3
        },
        {
            title: "操作应用系统",
            description: "输入姓名, 选择身份证, 点选身份证",
            pages: 4
        },
        {
            title: "操作应用系统",
            description: "输入姓名, 选择身份证, 点选身份证",
            pages: 4
        },
        {
            title: "操作应用系统",
            description: "输入姓名, 选择身份证, 点选身份证",
            pages: 4
        },
        {
            title: "操作应用系统",
            description: "输入姓名, 选择身份证, 点选身份证",
            pages: 4
        },
        {
            title: "操作应用系统",
            description: "输入姓名, 选择身份证, 点选身份证",
            pages: 4
        },
        {
            title: "操作应用系统",
            description: "输入姓名, 选择身份证, 点选身份证",
            pages: 4
        }
    ]
}

const buzi02 = {
    name: '支票取款',
    counter,
    scripts: [
        { name: '客户操作', scope: '1', onChange: { value: '询问客户', show: '客户回复窗口', score: 10 } },
        { name: '客户回复窗口', scope: '1', type: 'window', title: '客户回复窗口', display: false, content: '您好, 我需要提取支票上的1000元现金.', onClick: { pages: 1 } },
        { name: '身份证', scope: '2+', type: 'desktopItem', display: true, content: { id: 10008, action: 'confirm' } },
        { name: '支票', scope: '2+', type: 'desktopItem', display: true, content: { id: 10009, action: 'confirm' } },
        { name: '支票', scope: '2', onChange: { value: true, pages: 1, score: 10 }, onDrag: { value: '客户', show: '支票' } },
        { name: '视频', type: 'video', scope: '2', display: true, content: '/api/file/video/2c91bf9a6624ecc6016649705034000b' },
        // { name: '动画窗口', scope: '2', type: 'window', title: '动画窗口', content: '此处播放个动画.', onClick: { pages: 1 } },
        { name: '凭单格列表', scope: '3', onChange: { value: '业务交易单', pages: 1, score: 10 } },
        { name: '业务交易单', scope: '4+', type: 'desktopItem', display: true, content: { id: 10010, action: 'confirm' } },
        { name: '业务交易单', scope: '4', onDrag: { value: '打印机', pages: 1, score: 10 } },
        { name: '动画窗口', scope: '5', type: 'window', title: '动画窗口', content: '此处播放个动画.', onClick: { pages: 1 } },
        { name: '身份证', scope: '6', onChange: { value: true, pages: 1 } },
        { name: '交易系统', scope: '7', type: 'app', display: true, title: '交易系统001060', content: '交易系统001060' },
        { name: '凭单格列表', scope: '8', onChange: { value: '支付凭证', pages: 1 } },
        { name: '动画窗口', scope: '9', type: 'window', title: '动画窗口', content: '交易完成', onClick: { pages: 1 } },

        // { name: '视频', type: 'video', scope: '0+', display: false, content: 'http://test1.caringnurse.cn/bttrs/api/file/video/2c91bf9a659e3a8c01659ff0a7fb0025', onChange: { pages: 1 } },
        // { name: '凭证箱输入', scope: '3', onChange: { value: '打印纸,3', pages: 1 } },
        // { name: '窗口', scope: '2', type: 'window', title: '客户收到身份证', display: true, content: '<h3>请收好您的身份证</h3><p style="text-align: right">收到!</p><h3>谢谢!</h3>', onClick: { pages: 1 } },
        // { name: '应用系统', scope: '4', display: true, title: '系统-模块-001', content: '系统-模块-001' },
        // { name: '应用系统', scope: '5', type: 'app', display: false, title: '系统初始化', content: '系统-初始化' },
    ],
    steps: [
        {
            title: "业务受理",
            description: "点击客户头像, 在列表中选择'询问客户",
            risk: '风险1234',
            pages: 1,
            video: '/api/file/video/2c91bf9a659e3a8c01659ff0a7fb0025'
        },
        {
            title: "业务判定",
            description: "1.识别支票 2.凭单格取交易单 3.打印交易单 4.识别身份证",
            pages: 2
        },
        {
            title: "综合业务",
            description: "交易系统001060",
            pages: 7
        },
        {
            title: "完成交易",
            description: "凭单格取业务交易单, 打印",
            pages: 8
        },
        {
            title: "业务结束",
            description: "业务结束",
            pages: 10
        },
    ]
}

const business = [buzi01, buzi02]

export default business